import { create } from "zustand";

const useStore = create<{
    collapsed: boolean;
    currentMenu:string;
    updateCollapsed: () => void;
    setCurrentMenu: (menu: string) => void;
}>((set) => ({
  collapsed: false,
  currentMenu:"dishboard",
  setCurrentMenu:(menu:string)=>set({currentMenu:menu}),
  updateCollapsed: () => set((state) => ({ collapsed: !state.collapsed })),
}));

export default useStore;